<?php
// +----------------------------------------------------------------------
// | Description: 1
// +----------------------------------------------------------------------
// | Author: orchief
// +----------------------------------------------------------------------
// | Date: 2018-01-31 13:40:28
// +----------------------------------------------------------------------

namespace app\client\validate;

use think\Validate;

/**
 *
 */
class ShopMembersAddress extends Validate
{
    protected $rule = array(
        'ReceiverPhone' => 'require|regex:/^1[34578]\d{9}$/',
        'ReceiverName' => 'require',
        'AddrProvince' => 'require',
        'AddrCity' => 'require',
        'AddrArea' => 'require',
        'AddrDetail' => 'require',
    );
    protected $message = array(
        'ReceiverPhone.require' => '请输入收货人手机号',
        'ReceiverPhone.regex' => '手机号格式错误',
        'ReceiverName.require' => '请输入收货人姓名',
        'AddrProvince.require' => '请输入省 (直辖市)',
        'AddrCity.require' => '请输入市',
        'AddrArea.require' => '请输入区(县)',
        'AddrDetail.require' => '请输入具体地址',
    );
    protected $scene = [

    ];
}
